#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "comconfig.h"
#include <QSerialPort>
#include <QSerialPortInfo>
#include "zg291.h"
#include "internet.h"
#include "administrator.h"
#include "comconfig.h"
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:

    void on_connect_triggered();
    void handleDeviceSwitch(const QString &deviceType);
    void on_action_triggered();

    void on_network_triggered();

private:
    Ui::MainWindow *ui;
    QSerialPort *serialPort;
    ZG291 *zg291Widget = nullptr;
    QString deviceType;
};
#endif // MAINWINDOW_H
